package org.jivesoftware.smack.util.collections;

import java.util.Map.Entry;

public abstract class AbstractMapEntry<K, V> extends AbstractKeyValue<K, V>
  implements Map.Entry<K, V>
{
  protected AbstractMapEntry(K paramK, V paramV)
  {
    super(paramK, paramV);
  }

  public boolean equals(Object paramObject)
  {
    int i;
    if (paramObject == this)
      i = 1;
    while (true)
    {
      return i;
      if (paramObject instanceof Map.Entry)
        break;
      i = 0;
    }
    Map.Entry localEntry = (Map.Entry)paramObject;
    if (getKey() == null)
    {
      if (localEntry.getKey() != null)
        break label79;
      if (getValue() != null)
        break label84;
      if (localEntry.getValue() != null)
        break label79;
    }
    while (true)
    {
      do
        while (true)
          i = 1;
      while (getKey().equals(localEntry.getKey()));
      label79: label84: 
      do
        while (true)
          i = 0;
      while (!(getValue().equals(localEntry.getValue())));
    }
  }

  public int hashCode()
  {
    int i;
    int j;
    if (getKey() == null)
    {
      i = 0;
      if (getValue() != null)
        break label33;
      j = 0;
    }
    while (true)
    {
      while (true)
      {
        return (i ^ j);
        i = getKey().hashCode();
      }
      label33: j = getValue().hashCode();
    }
  }

  public V setValue(V paramV)
  {
    Object localObject = this.value;
    this.value = paramV;
    return localObject;
  }
}